package cn.sample.common.result;

/**
 * <h2></h2>
 *
 * <p></p>
 *
 * @author HKD
 */
public enum ResultCode {

    SUCCESS(200, "成功"),
    LOGIN_SUCCESS(200, "登录成功！"),
    SUCCESS_LOGOUT(200,"退出成功!"),

    ERROR(500,"失败"),
    BUS_ERROR(400,"业务错误"),
    SC_UNAUTHORIZED(401,"很抱歉，您无权访问该资源。请先进行认证。"),
    SC_FORBIDDEN(403,"请求权限不足！"),
    LOGIN_ERROR(403,"登录失败，用户名或密码错误！");

    private Integer code;
    private String message;

    ResultCode(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
